﻿using System.Collections.Generic;

namespace Mvc3App.Domain.Repository
{
    public interface IRepository<TEntity, TId>
    {
        TEntity GetOne(TId id);
        void Add(TEntity entity);
        void Update(TEntity entity);
        void Delete(TEntity entity);

        long Count();
        IEnumerable<TEntity> GetSlice(int slice, int quantity, string order, bool ascending);
    }
}